package com.ss.web.action;

import javax.inject.Inject;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ss.bean.User;
import com.ss.service.BUser;

@Controller
@RequestMapping(value="/user")
public class UserAction {
	@Inject private BUser bUser;
	
	@RequestMapping(value="/hello")
	public String hello(Model model) {
		User user = bUser.findOne(1);
		model.addAttribute("name", user.getName());
		return "hello";
	}
	
}
